export default {
  data() {
    return {
      page: {
        currentPage: 1,
        pageSizes: [10, 20, 50, 100],
        pageSize: 10,
        sums: 0,
      },
    };
  },
  methods: {
    handleSizeChange(pageSize, callback) {
      this.page.pageSize = pageSize;
      this.page.currentPage = 1;
      callback ? callback() : this.getData();
    },
    handleCurrentChange(currentPage, callback) {
      this.page.currentPage = currentPage;
      callback ? callback() : this.getData();
    },
  },
};
